/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.assets;

import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.Solenoid;

/**
 *
 * @author Jarrod Risley
 */
public class KittySwerve {
    
    /*
     * Global Variables
     */
    private Compressor compressor;
    private Solenoid deploy;
    private Solenoid retract;
    
    
    // CONSTRUCTOR //
    
    
    /**
     * Constructs Kitty's swerve drive. This constructor takes two arguments:
     * the first one is for <b>deploying</b> the drive, the second is for 
     * <b>retracting</b> the drive. <b>Hint:</b> Check the robot for the 
     * proper ports on the solenoids. The solenoids are on the piece of wood,
     * opposite the air compressor. Colored tubing runs right into it. Several
     * wires come out of it; each set of wires has a number on it. Use those for
     * this constructor.
     * 
     * @param solenoidOne
     * @param solenoidTwo 
     */
    
    public KittySwerve(int solenoidOne, int solenoidTwo) {
        
        compressor = new Compressor(9, 1);
        compressor.start();
        
        deploy = new Solenoid(solenoidOne);
        retract = new Solenoid(solenoidTwo);
        
    } // end KittySwerve Constructor
    
    
    // METHODS //
    
    
    /**
     * This method will <b>deploy</b> the swerve. Use this with an <b>if-else-if</b> 
     * with the retract method.
     * 
     * @param isDeployed A <b>boolean</b> to set the state of the deploy 
     * solenoid.
     */
    
    public void deploySwerve(boolean isDeployed) {
        deploy.set(isDeployed);
    } // end deploySwerve
    
    /**
     * This method will <b>retract</b> the swerve. Use this with an <b>if-else-if</b> 
     * with the deploy method.
     * 
     * @param isDeployed A <b>boolean</b> to set the state of the deploy 
     * solenoid.
     */
    
    public void retractSwerve(boolean isDeployed) {
        retract.set(isDeployed);
    } // end deploySwerve
    
} // end KittySwerve
